package myextends.test;

public class Student extends People{
    private double score;

    public Student(){

    }
    public Student(String name,int age,double score){
//        super.setName(name);
//        super.setAge(age);
          super(name,age);
          this.score=score;
    }
    public static void work(){


    }    public void study(){
        System.out.println("姓名:"+getName()+"年龄:"+getAge()+"成绩:"+score+"的学生在听课");
    }
    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
